import request from '../../utils/request.js'
const state = {
	navDetail:[]
}
const mutations = {
	SET_NAVDETAIL(state,navDetail){
		state.navDetail = navDetail
	}
}
const actions = {
	async getNavDetail({commit}){
		try{
			const result = await request('/getnavListDetail')
			console.log(result)
			commit('SET_NAVDETAIL',result)
			return 'ok'
		}catch(e){
			return Promise.reject(e)
		}
	}
}
const getters = {}

export default {
	namespaced:true,
	state,
	mutations,
	actions,
	getters
}